Skip to content

[Feat] #39 계정 정보 조회 API 구현#50

Open
yukyoungs wants to merge 2 commits into
developfrom
feat/#39
Open

[Feat] #39 계정 정보 조회 API 구현#50
yukyoungs wants to merge 2 commits into
developfrom
feat/#39

Conversation

@yukyoungs

@yukyoungs yukyoungs commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

#️⃣ 관련 이슈

closed #39

PR 유형

어떤 변경 사항이 있나요?

  • 새로운 기능 추가
  • 버그 수정
  • 코드 리팩토링
  • 주석 추가 및 수정
  • 문서 수정
  • 테스트 추가, 테스트 리팩토링
  • 빌드 부분 혹은 패키지 매니저 수정
  • 파일 혹은 폴더명 수정
  • 파일 혹은 폴더 삭제

PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • 커밋 메시지 컨벤션에 맞게 작성했습니다.
  • 변경 사항에 대한 테스트를 했습니다.(버그 수정/기능에 대한 테스트).

🧩 작업 내용

계정 정보 조회 API 구현했습니다.

  • GET /api/settings/account — 소셜 연결, 가입일, 수신 이메일, 이메일 확인 상태 조회

주요 구현 내용

  • 응답 필드: socialType(카카오/구글 provider만 노출, 소셜 고유 ID는 노출하지 않음), joinedAt(가입일), receivingEmail, emailVerified
  • emailVerifiedNotificationSetting 엔티티 값을 가져오는데, 유저가 알림 설정을 한 번도 안 건드려서 해당 row가 없으면 false로 반환 (이 조회 API 때문에 다른 도메인 row를 새로 만들지는 않도록 처리)
  • 단위 테스트 3건 작성 (AccountServiceTest): 사용자 없음 / 정상 조회 / 알림 설정 미생성 시 미확인 처리

📸 스크린샷(선택)

스크린샷 2026-07-27 오전 2 12 58

📣 To Reviewers

  • socialType만 노출하고 socialId는 응답에 포함하지 않았는데, 와이어프레임(SET-02) 기준으로는 이거면 충분해 보입니다. 혹시 프론트에서 더 필요한 필드 있으면 말씀해주세요.

Summary by CodeRabbit

  • 새 기능

    • 계정 정보를 조회할 수 있는 API가 추가되었습니다.
    • 소셜 로그인 유형, 가입일, 이메일 주소, 이메일 인증 여부를 확인할 수 있습니다.
    • 이메일 인증 설정이 없는 경우 미인증 상태로 표시됩니다.
  • 버그 수정

    • 존재하지 않는 계정 조회 시 적절한 사용자 없음 오류를 반환합니다.
  • 테스트

    • 계정 정보 조회 및 이메일 인증 상태 처리에 대한 검증을 추가했습니다.

@yukyoungs yukyoungs self-assigned this Jul 26, 2026
@yukyoungs yukyoungs added the ✨ Feat 새로운 기능 추가 label Jul 26, 2026
@coderabbitai

coderabbitai Bot commented Jul 26, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@yukyoungs, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 47 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a90ff55e-db53-455b-a0d1-24aa6ac3d72c

📥 Commits

Reviewing files that changed from the base of the PR and between 4d348a9 and 3d3d6fb.

📒 Files selected for processing (1)
  • src/test/java/com/leets7th/job_is_be/domain/user/service/AccountServiceTest.java
📝 Walkthrough

Walkthrough

계정 응답 DTO와 조회 서비스를 추가하고, JWT 기반 GET /api/settings/account 엔드포인트를 구현했습니다. 사용자 및 알림 설정 조회 결과와 예외 처리를 서비스 테스트로 검증합니다.

Changes

계정 정보 조회

Layer / File(s) Summary
계정 응답 및 조회 서비스
src/main/java/com/leets7th/job_is_be/domain/user/dto/AccountResponse.java, src/main/java/com/leets7th/job_is_be/domain/user/service/AccountService.java
계정 응답 필드와 사용자 조회, 알림 설정 기반 이메일 인증 상태 매핑을 추가했습니다.
인증된 계정 조회 엔드포인트
src/main/java/com/leets7th/job_is_be/domain/user/controller/AccountController.java, src/main/java/com/leets7th/job_is_be/global/status/SuccessStatus.java
JWT subject를 사용자 ID로 변환하는 GET /api/settings/account 핸들러와 성공 상태 코드를 추가했습니다.
계정 조회 서비스 검증
src/test/java/com/leets7th/job_is_be/domain/user/service/AccountServiceTest.java
사용자 미존재, 알림 설정 존재 및 부재에 따른 조회 결과를 검증했습니다.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant AccountController
  participant AccountService
  participant UserRepository
  participant NotificationSettingRepository
  Client->>AccountController: GET /api/settings/account with JWT
  AccountController->>AccountService: getAccount(userId)
  AccountService->>UserRepository: findById(userId)
  AccountService->>NotificationSettingRepository: findByUser(user)
  AccountService-->>AccountController: AccountResponse
  AccountController-->>Client: ApiResponse success
Loading

Suggested reviewers: yeonjuncho, sky-0131

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 제목이 계정 정보 조회 API 구현이라는 핵심 변경을 정확하고 간결하게 요약합니다.
Linked Issues check ✅ Passed 요구된 GET /api/settings/account와 응답 필드, 이메일 미설정 시 false 처리까지 반영했습니다.
Out of Scope Changes check ✅ Passed 계정 조회 API와 이를 뒷받침하는 DTO, 서비스, 테스트만 추가되어 별도 무관한 변경은 보이지 않습니다.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@src/test/java/com/leets7th/job_is_be/domain/user/service/AccountServiceTest.java`:
- Around line 53-63: 정상 조회 테스트에서 User fixture의 createdAt을 고정된 값으로 설정하고,
accountService.getAccount(1L) 결과에 대해 response.joinedAt()이 해당 값과 일치하는지 검증하세요. 기존
socialType, receivingEmail, emailVerified 검증은 유지하세요.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d13301f9-0bf7-4233-8350-1c6ee0796f0d

📥 Commits

Reviewing files that changed from the base of the PR and between 05ffe18 and 4d348a9.

📒 Files selected for processing (5)
  • src/main/java/com/leets7th/job_is_be/domain/user/controller/AccountController.java
  • src/main/java/com/leets7th/job_is_be/domain/user/dto/AccountResponse.java
  • src/main/java/com/leets7th/job_is_be/domain/user/service/AccountService.java
  • src/main/java/com/leets7th/job_is_be/global/status/SuccessStatus.java
  • src/test/java/com/leets7th/job_is_be/domain/user/service/AccountServiceTest.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feat 새로운 기능 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 계정 정보 조회 API 구현

1 participant